<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<html lang="zh-CN">
<head>
<meta
	content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
	name="viewport" />
<meta charset="utf-8">
<title>来存吧下载</title>
<style type="text/css">
html, body {
	padding: 0px;
	margin: 0px;
	width: 100%;
	height: 100%;
}
img{
	box-sizing: border-box;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	border: 0;
}
.input_box,#btnDownload {
    position: absolute;
}
.input_box {
    border-radius: 5px 0 0 5px;
}
.input_box input {
     border-radius: 5px 0 0 5px;
     outline: none;
     border: none;
     padding: 0 0 0 10px;
}
#btnDownload {
    border-radius: 0 5px 5px 0;
    text-align: center;
    background: #4297d5;
    color: #FFF;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
#errorShow {
    position: absolute;
    color: #FFF;
}
</style>
</head>
<body style="background: #ef3440;">
   <div style="position: relative;">
	  <img src="http://laicunba.b0.upaiyun.com/lcb/activity/download_app_0325.jpg" />
	  <div class="input_box"><input id="mobile" placeholder="请输入手机号" ></div>
	  <div id="btnDownload">下载领奖</div>
	  <div id="errorShow"></div>
   </div>
	
		
		
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript">
		$(function() {
			$("#btnDownload").click(function() {
				$("#errorShow").html("");
				var mobile = $("#mobile").val().trim();
				if (!mobile) {
					$("#mobile").focus();
					$("#errorShow").html("请输入手机号码");
					return;
				}
				if (!(/^1[0-9]{10}$/.test(mobile))) {
					$("#errorShow").html("请输入正确的手机号码!");
					return;
				}
				window.location = "download_app_0324.htm?mobile=" + mobile;
			});
			$(".input_box input").click(function(){
				$("#errorShow").html("");
			})
			var	ratio = $(window).width()/750;
			function rdist(num){
				return Math.floor(ratio*num) + "px";
			};
			$(".input_box").css({
				left: rdist(48),
			    top: rdist(1078),
			    
			});
			$(".input_box input").css({
				width: rdist(470),
			    height: rdist(101),
			})
			$("#btnDownload").css({
				right: rdist(48),
			    top: rdist(1078),
			    width: rdist(172),
			    height: rdist(101),
			    lineHeight: rdist(101),
			});
			$("#errorShow").css({
				top: rdist(1180),
				left: rdist(48),
			});
		});
	</script>
</body>
</html>